package com.smsp.entity;

import javax.validation.constraints.Pattern;
import java.util.Date;

public class MessageDetail {
    private Integer id;

    private String templetNo;

    private String messageContent;

    private String messageStatus;

    @Pattern(regexp = "^$|^1(3|4|5|7|8|9)\\d{9}$", message = "手机格式不正确")
    private String phone;

    private Date receiveTime;

    private Date createTime;

    private Date updateTime;

    private String messageDetailExtend1;

    private Integer messageDetailExtend2;

    public MessageDetail(Integer id, String templetNo, String messageContent, String messageStatus, String phone, Date receiveTime, Date createTime, Date updateTime, String messageDetailExtend1, Integer messageDetailExtend2) {
        this.id = id;
        this.templetNo = templetNo;
        this.messageContent = messageContent;
        this.messageStatus = messageStatus;
        this.phone = phone;
        this.receiveTime = receiveTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.messageDetailExtend1 = messageDetailExtend1;
        this.messageDetailExtend2 = messageDetailExtend2;
    }

    public MessageDetail() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTempletNo() {
        return templetNo;
    }

    public void setTempletNo(String templetNo) {
        this.templetNo = templetNo == null ? null : templetNo.trim();
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent == null ? null : messageContent.trim();
    }

    public String getMessageStatus() {
        return messageStatus;
    }

    public void setMessageStatus(String messageStatus) {
        this.messageStatus = messageStatus == null ? null : messageStatus.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getMessageDetailExtend1() {
        return messageDetailExtend1;
    }

    public void setMessageDetailExtend1(String messageDetailExtend1) {
        this.messageDetailExtend1 = messageDetailExtend1 == null ? null : messageDetailExtend1.trim();
    }

    public Integer getMessageDetailExtend2() {
        return messageDetailExtend2;
    }

    public void setMessageDetailExtend2(Integer messageDetailExtend2) {
        this.messageDetailExtend2 = messageDetailExtend2;
    }
}